package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 加油记录对象 car_oil
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
public class CarOil extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 加油记录ID */
    private Long id;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long carId;

    /** 车辆编号 */
    @Excel(name = "车辆编号")
    private String carNo;

    /** 加油数量 */
    @Excel(name = "加油数量")
    private BigDecimal oilQty;

    /** 加油费用 */
    @Excel(name = "加油费用")
    private BigDecimal oilMoney;

    /** 加 油时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加 油时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCarNo(String carNo) 
    {
        this.carNo = carNo;
    }

    public String getCarNo() 
    {
        return carNo;
    }
    public void setOilQty(BigDecimal oilQty) 
    {
        this.oilQty = oilQty;
    }

    public BigDecimal getOilQty() 
    {
        return oilQty;
    }
    public void setOilMoney(BigDecimal oilMoney) 
    {
        this.oilMoney = oilMoney;
    }

    public BigDecimal getOilMoney() 
    {
        return oilMoney;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("carNo", getCarNo())
            .append("oilQty", getOilQty())
            .append("oilMoney", getOilMoney())
            .append("addTime", getAddTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
